﻿
namespace Ledict.Utility.Common
{
    /// <summary>
    /// 用于放置整个系统中的约定、常量、系统提示信息等
    /// </summary>
    /// <remarks>
    /// Create Date:2014-08-11
    /// Create Author:Zhangpeng
    /// </remarks>
    public static class ConventionConst
    {
        #region Result
        //数据库执行成功
        public const int DB_SUCCESS_VALUE = 0;
        //数据库执行失败
        public const int DB_FAIL_VALUE = -1;
        //数据库连接失败
        public const int DB_DBFAIL_VALUE = -2;
        //数据库开始事务失败
        public const int DB_BEGIN_TRAN = -3;
        //数据库提交事务失败
        public const int DB_COMMIT_TRAN = -4;
        //查询失败
        public const int DB_SELECTFAIL_VALUE = -5;
        //参数为空
        public const int PARAMETER_NULL = -6;
        //异常
        public const int EXCEPTION = -7;

        //存在关系关系 服务层使用Licw
        public const int RELEVANCY = -8;

        //存在关系关系 服务层使用Licw
        public const int DELETED = -9;

        //未知情况 Licw
        public const int UNKNOWN = -11;

        //数据异常 Licw
        public const int DATAEXCEPTION = -12;

        //数据已存在
        public const int DB_EXIST = -10;

        #endregion

        #region Message
        /// <summary>
        /// 添加成功描述
        /// </summary>
        public const string AddSuccessMsg = "添加成功 ";
        /// <summary>
        /// 添加失败描述
        /// </summary>
        public const string AddFailMsg = "添加失败 ";
        /// <summary>
        /// 更新成功描述
        /// </summary>
        public const string UpdateSuccessMsg = "更新成功 ";
        /// <summary>
        /// 更新失败描述
        /// </summary>
        public const string UpdateFailMsg = "更新失败 ";
        /// <summary>
        /// 删除成功描述
        /// </summary>
        public const string DelSuccessMsg = "删除成功 ";
        /// <summary>
        /// 删除失败描述
        /// </summary>
        public const string DelFailMsg = "删除失败 ";
        /// <summary>
        /// 导出成功描述
        /// </summary>
        public const string ExportSuccessMsg = "导出成功 ";
        /// <summary>
        /// 导出失败描述
        /// </summary>
        public const string ExportFailMsg = "导出失败";
        /// <summary>
        /// 导入成功描述
        /// </summary>
        public const string ImportSuccessMsg = "导入成功 ";
        /// <summary>
        /// 导入失败描述
        /// </summary>
        public const string ImportFailMsg = "导入失败 ";
        /// <summary>
        /// 下载成功描述
        /// </summary>
        public const string DownLoadSuccessMsg = "下载成功 ";
        /// <summary>
        /// 下载失败描述
        /// </summary>
        public const string DownLoadFailMsg = "下载失败 ";
        /// <summary>
        /// 上传成功描述
        /// </summary>
        public const string UpLoadSuccessMsg = "上传成功 ";
        /// <summary>
        /// 上传失败描述
        /// </summary>
        public const string UpLoadFailMsg = "上传失败 ";

        #region 用户相关操作信息提示
        /// <summary>
        /// 用户已被禁用
        /// </summary>
        public const string UserStatusDisable = "用户已被禁用，无法使用系统，请联系管理员！";
        /// <summary>
        /// 用户名密码不正确
        /// </summary>
        public const string UserPwdError = "用户名密码不正确！";
        /// <summary>
        /// 用户名不存在
        /// </summary>
        public const string UserIsNotExist = "用户名不存在！";
        /// <summary>
        /// 用户名存在 
        /// </summary>
        public const string UserIsExist = "用户名存在！";

        #endregion


        #endregion
    }
}
